package global

import "errors"

var (
	ErrPassword     = errors.New("密码错误")
	ErrPasswordHash = errors.New("加密错误")

	ErrGormRecordNotFound = errors.New("查询不到数据")
	ErrGormRecord         = errors.New("查询异常")

	ErrRegister         = errors.New("注册失败，请重试")
	ErrErrUsernameExist = errors.New("用户名已经存在")
)

var (
	ErrValidateSmsCode = errors.New("短信验证错误")
	ErrValidateCaptche = errors.New("图片验证错误")
)

var (
	ErrJwtAuthIllegal = errors.New("token不存在或非法访问")
	ErrJwtAuthFailure = errors.New("令牌失效")
	ErrJwtAuthExpired = errors.New("令牌过期")
)

var (
	ErrCartSkuNumDeficiency = errors.New("商品库存不足")
)
